"use strict";

/**
 * @namespace testUtils
 */

var testUtils = {};

/**
 * @memberof testUtils
 * @description 加载测试用例
 * @param {string[]} urls 
 */
testUtils.loadTestCases = function (urls) {
  if (!(urls instanceof Array)) {
    throw new Error('argument#0 "urls" required Array');
  }

  var jqBody = $('body');

  urls.forEach(function (url) {
    var html = '<script src="' + url + '" type="text/javascript"></script>';
    jqBody.append(html);
  });
};
